<!doctype html>
<html lang="zh-CN">
<head>
    <include file="include/head" title="推广二维码" />
</head>

<body>
	<!--div class="header-blank"></div>
    <div class="header">
		推广二维码
		<span class="left">
			<a href="{:U('Index/ucenter')}"><span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span></a>
		</span>
	</div-->
	
	<div class="qrcode-main" style="z-index:9999">
		生成中需要5秒左右，请稍后...
		<img src="{:U('Index/get_qrcode')}" id="qrcode" style=" width:100%" />
		
		<script>
		$(document).ready(function(d){
			h = $(window).height();
			img_h = h;// - 90;
			$("#qrcode").height(img_h+"px");
		});
		</script>
	</div>
	
	<script>
	window.shareData = {
		img: "<if condition="$shop['logo'] neq ''">{$shop.logo}<else/>{$_CFG['site']['logo']|complete_url}</if>", 
		link: "<?php 
			if($user['dist']){
				echo complete_url(U('index',http_build_query(array_merge(array('parent' => $user['id']),$_GET))));
			}else{
				echo complete_url(U('index',http_build_query($_GET)));
			}
		?>",
		title: document.title,
		desc: "这是我开的一个小店，来看看吧"
	};	
	</script>
	<include file="include/share" />
</body>
</html>